Inscoper::DiagResults¶
DiagResults class contains the results from a device diagnostic. More...
#include <DiagResults.h>
Public Functions¶
| Name | |
|---|---|
| DiagResults() Default constructor. |
|
| ~DiagResults() Default destructor. |
|
| void | setSubDeviceStatus(const std::map< unsigned short, Inscoper::ESubDeviceStatus > & statusMap) Set sub-device statuses. |
| Inscoper::ESubDeviceStatus | getSubDeviceStatus(unsigned short subDeviceTag) Get sub-device status. |
| Inscoper::EFunctionStatus | getFunctionStatus(unsigned short subDeviceTag, Inscoper::EFunctionType functionType) Get function status. |
| Inscoper::ConstraintPtr | getParamConstraint(unsigned short paramTag) Get parameter constraint. |
| std::map< unsigned short, Inscoper::ESubDeviceStatus > | getSubDeviceStatusMap() Get all sub-device statuses. |
| std::map< unsigned short, Inscoper::ConstraintPtr > | getParamConstraintMap() Get all parameter constraints. |
| void | addParamConstraint(unsigned short paramTag, const Inscoper::ConstraintPtr & constraint) Add parameter constraint. |
| void | addFunctionStatus(unsigned short subDeviceTag, Inscoper::EFunctionType functionType, Inscoper::EFunctionStatus functionStatus) Add function status. |
| const std::string & | getName() const Get name. |
| void | setName(const std::string & name) Set name. |
| const Inscoper::DriverConfigPtr & | getDriverConfig() const Get driver configuration. |
| void | setDriverConfig(const Inscoper::DriverConfigPtr & driverConfig) Set driver configuration. |
Detailed Description¶
DiagResults class contains the results from a device diagnostic.
Aggregates status information and constraints for sub-devices of a device and their functions, providing a comprehensive report of the system's state.
Public Functions Documentation¶
function DiagResults¶
Default constructor.
Initializes a new instance of the DiagResults class.
function ~DiagResults¶
Default destructor.
function setSubDeviceStatus¶
Set sub-device statuses.
Parameters:
- statusMap : A map associating sub-device tags with their status
Populates the map of sub-device statuses.
function getSubDeviceStatus¶
Get sub-device status.
Parameters:
- subDeviceTag : The tag of the sub-device
Return: The status of the sub-device
Retrieves the status of a specific sub-device.
function getFunctionStatus¶
Inscoper::EFunctionStatus getFunctionStatus(
unsigned short subDeviceTag,
Inscoper::EFunctionType functionType
)
Get function status.
Parameters:
- subDeviceTag : The tag of the sub-device
- functionType : The type of function to query
Return: The status of the function
Retrieves the status of a specific function on a sub-device.
function getParamConstraint¶
Get parameter constraint.
Parameters:
- paramTag : The tag of the parameter
Return: A shared pointer to the constraint object
Retrieves the constraint object associated with a specific parameter.
function getSubDeviceStatusMap¶
Get all sub-device statuses.
Return: A map of sub-device tags to statuses
Retrieves the complete map of sub-device statuses.
function getParamConstraintMap¶
Get all parameter constraints.
Return: A map of parameter tags to constraints
Retrieves the complete map of parameter constraints.
function addParamConstraint¶
Add parameter constraint.
Parameters:
- paramTag : The tag of the parameter
- constraint : The constraint object to add
Adds or updates a constraint for a specific parameter.
function addFunctionStatus¶
void addFunctionStatus(
unsigned short subDeviceTag,
Inscoper::EFunctionType functionType,
Inscoper::EFunctionStatus functionStatus
)
Add function status.
Parameters:
- subDeviceTag : The tag of the sub-device
- functionType : The type of function
- functionStatus : The status to add
Adds the status of a specific function on a sub-device.
function getName¶
Get name.
Return: The name
Retrieves the name associated with this diagnostic result.
function setName¶
Set name.
Parameters:
- name : The name
Sets the name associated with this diagnostic result.
function getDriverConfig¶
Get driver configuration.
Return: A shared pointer to the DriverConfig
Retrieves the driver configuration associated with the diagnostic.
function setDriverConfig¶
Set driver configuration.
Parameters:
- driverConfig : The new DriverConfig pointer
Sets the driver configuration associated with the diagnosis.
Updated on 2026-04-02 at 10:55:35 +0200